package com.jicheng.mapper;

import com.jicheng.dto.integrity.SituationDto;
import com.jicheng.entity.Situation;
import com.jicheng.framework.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @ClassName: SituationEntityMapper
 * @Description: TODO
 * @author: khz
 * @date: 2020年08月19日 9:16
 */
@Repository
public interface SituationMapper extends BaseMapper<Situation> {

    SituationDto getSituation(@Param("reportId") String reportId, @Param("cadreId") String cadreId, @Param("appId") String appId);
    @Select("select count(1) from cadre_situation where id = #{cadreId}")
    int isExist(String cadreId);
}
